package cn.fl.project.service;

import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.project.vo.PrjContCreatRecVO;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import java.util.List;

/**
 * 批量生成合同
 */
public interface IPrjContBatchMakeService {



    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(PrjContCreatRecVO entity)throws BaseException;

    /**
     * 根据批号生成合同
     * @param batchNumber
     * @return
     */
    public String addContByBatchNumber(String batchNumber)throws BaseException;

    /**
     * 根据记录id创建合同
     * @param logId
     * @return
     * @throws BaseException
     */
    boolean addContractByLogId(Long logId)throws BaseException;
    /**
     * 根据记录id创建合同
     * @param logId
     * @return
     * @throws BaseException
     */
    boolean addContract(Long logId,List<String> tmplateIds)throws BaseException;
    /**
     *
     * @param multipartRequest 合同excel
     * @return 返回生产批号
     * @throws BaseException
     */
    String addBatchByUpload(MultipartHttpServletRequest multipartRequest) throws BaseException;
    /**
     *
     * @param batchNumber 生产批号
     * @return
     * @throws BaseException
     */
    List<PrjContCreatRecVO> selectListByBatchNumber(String batchNumber) throws BaseException;

    Pager searchListPage(Pager page) throws BaseException;
}
